export const myGet = (url) => {
  return fetch(url)
    .then(res => res.json())
}
export const myPost = (url, data) => {
  return fetch(url, {
    method: 'POST',
    body: data
  })
    .then(res => res.json())
}